import { Context } from "../class/Context";
import { Hurt } from "../class/Hurt";
import { Method } from "../class/Method";

/**
 * 狮颂
 */
export class ShiSong extends Method{
    static methodName = "狮颂"
    public CD: number = 30E3;
    public describe: string = "举起三把刀同时向前突击，造成目标160%（PA）+120的物理伤害，同时召唤一头雄狮震吼，震吼造成目标300真伤。";
    invoke(context: Context): void {
        const itId = context.nextParam()
        const it = this.masterRole.game.getRole(itId);
        //物理伤害计算
        const PA = this.masterRole.getPhysicsAttack() * 1.6 + 120;
        //总伤害
        it.onHurt(this.masterRole, new Hurt(PA, 0 ,300))
    }
}